use super::common_import::*;

#[pyfunction]
#[pyo3(signature = (**kwds))]
pub fn py_dict(kwds: Option<&PyDict>) -> PyResult<String> {
    trace!("num_kwds: {:?}", &kwds);
    let r = kwds.map_or("who am I", |dict| match dict.contains("Jack") {
        Ok(_) => "Yeap, Jack is there!",
        Err(_) => "Nope, Jack is not here!",
    });
    Ok(r.to_string())
}